home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / accessibility / nsIAccessibleAction.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  6KB  |  150 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIAccessibleAction.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIAccessibleAction_h__
  6. #define __gen_nsIAccessibleAction_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17.  
  18. /* starting interface:    nsIAccessibleAction */
  19. #define NS_IACCESSIBLEACTION_IID_STR "829b36d4-125a-4279-abc4-87d834664f82"
  20.  
  21. #define NS_IACCESSIBLEACTION_IID \
  22.   {0x829b36d4, 0x125a, 0x4279, \
  23.     { 0xab, 0xc4, 0x87, 0xd8, 0x34, 0x66, 0x4f, 0x82 }}
  24.  
  25. class NS_NO_VTABLE nsIAccessibleAction : public nsISupports {
  26.  public: 
  27.  
  28.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IACCESSIBLEACTION_IID)
  29.  
  30.   /* readonly attribute long actions; */
  31.   NS_IMETHOD GetActions(PRInt32 *aActions) = 0;
  32.  
  33.   /* boolean doAction (in long index); */
  34.   NS_IMETHOD DoAction(PRInt32 index, PRBool *_retval) = 0;
  35.  
  36.   /* AString getDescription (in long index); */
  37.   NS_IMETHOD GetDescription(PRInt32 index, nsAString & _retval) = 0;
  38.  
  39.   /* void getDescriptionConst (in long index, [shared, retval] out string description); */
  40.   NS_IMETHOD GetDescriptionConst(PRInt32 index, const char **description) = 0;
  41.  
  42.   /* AString getKeyBinding (in long index); */
  43.   NS_IMETHOD GetKeyBinding(PRInt32 index, nsAString & _retval) = 0;
  44.  
  45.   /* void getKeyBindingConst (in long index, [shared, retval] out string keyBinding); */
  46.   NS_IMETHOD GetKeyBindingConst(PRInt32 index, const char **keyBinding) = 0;
  47.  
  48. };
  49.  
  50. /* Use this macro when declaring classes that implement this interface. */
  51. #define NS_DECL_NSIACCESSIBLEACTION \
  52.   NS_IMETHOD GetActions(PRInt32 *aActions); \
  53.   NS_IMETHOD DoAction(PRInt32 index, PRBool *_retval); \
  54.   NS_IMETHOD GetDescription(PRInt32 index, nsAString & _retval); \
  55.   NS_IMETHOD GetDescriptionConst(PRInt32 index, const char **description); \
  56.   NS_IMETHOD GetKeyBinding(PRInt32 index, nsAString & _retval); \
  57.   NS_IMETHOD GetKeyBindingConst(PRInt32 index, const char **keyBinding); 
  58.  
  59. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  60. #define NS_FORWARD_NSIACCESSIBLEACTION(_to) \
  61.   NS_IMETHOD GetActions(PRInt32 *aActions) { return _to GetActions(aActions); } \
  62.   NS_IMETHOD DoAction(PRInt32 index, PRBool *_retval) { return _to DoAction(index, _retval); } \
  63.   NS_IMETHOD GetDescription(PRInt32 index, nsAString & _retval) { return _to GetDescription(index, _retval); } \
  64.   NS_IMETHOD GetDescriptionConst(PRInt32 index, const char **description) { return _to GetDescriptionConst(index, description); } \
  65.   NS_IMETHOD GetKeyBinding(PRInt32 index, nsAString & _retval) { return _to GetKeyBinding(index, _retval); } \
  66.   NS_IMETHOD GetKeyBindingConst(PRInt32 index, const char **keyBinding) { return _to GetKeyBindingConst(index, keyBinding); } 
  67.  
  68. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  69. #define NS_FORWARD_SAFE_NSIACCESSIBLEACTION(_to) \
  70.   NS_IMETHOD GetActions(PRInt32 *aActions) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetActions(aActions); } \
  71.   NS_IMETHOD DoAction(PRInt32 index, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->DoAction(index, _retval); } \
  72.   NS_IMETHOD GetDescription(PRInt32 index, nsAString & _retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDescription(index, _retval); } \
  73.   NS_IMETHOD GetDescriptionConst(PRInt32 index, const char **description) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDescriptionConst(index, description); } \
  74.   NS_IMETHOD GetKeyBinding(PRInt32 index, nsAString & _retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetKeyBinding(index, _retval); } \
  75.   NS_IMETHOD GetKeyBindingConst(PRInt32 index, const char **keyBinding) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetKeyBindingConst(index, keyBinding); } 
  76.  
  77. #if 0
  78. /* Use the code below as a template for the implementation class for this interface. */
  79.  
  80. /* Header file */
  81. class nsAccessibleAction : public nsIAccessibleAction
  82. {
  83. public:
  84.   NS_DECL_ISUPPORTS
  85.   NS_DECL_NSIACCESSIBLEACTION
  86.  
  87.   nsAccessibleAction();
  88.  
  89. private:
  90.   ~nsAccessibleAction();
  91.  
  92. protected:
  93.   /* additional members */
  94. };
  95.  
  96. /* Implementation file */
  97. NS_IMPL_ISUPPORTS1(nsAccessibleAction, nsIAccessibleAction)
  98.  
  99. nsAccessibleAction::nsAccessibleAction()
  100. {
  101.   /* member initializers and constructor code */
  102. }
  103.  
  104. nsAccessibleAction::~nsAccessibleAction()
  105. {
  106.   /* destructor code */
  107. }
  108.  
  109. /* readonly attribute long actions; */
  110. NS_IMETHODIMP nsAccessibleAction::GetActions(PRInt32 *aActions)
  111. {
  112.     return NS_ERROR_NOT_IMPLEMENTED;
  113. }
  114.  
  115. /* boolean doAction (in long index); */
  116. NS_IMETHODIMP nsAccessibleAction::DoAction(PRInt32 index, PRBool *_retval)
  117. {
  118.     return NS_ERROR_NOT_IMPLEMENTED;
  119. }
  120.  
  121. /* AString getDescription (in long index); */
  122. NS_IMETHODIMP nsAccessibleAction::GetDescription(PRInt32 index, nsAString & _retval)
  123. {
  124.     return NS_ERROR_NOT_IMPLEMENTED;
  125. }
  126.  
  127. /* void getDescriptionConst (in long index, [shared, retval] out string description); */
  128. NS_IMETHODIMP nsAccessibleAction::GetDescriptionConst(PRInt32 index, const char **description)
  129. {
  130.     return NS_ERROR_NOT_IMPLEMENTED;
  131. }
  132.  
  133. /* AString getKeyBinding (in long index); */
  134. NS_IMETHODIMP nsAccessibleAction::GetKeyBinding(PRInt32 index, nsAString & _retval)
  135. {
  136.     return NS_ERROR_NOT_IMPLEMENTED;
  137. }
  138.  
  139. /* void getKeyBindingConst (in long index, [shared, retval] out string keyBinding); */
  140. NS_IMETHODIMP nsAccessibleAction::GetKeyBindingConst(PRInt32 index, const char **keyBinding)
  141. {
  142.     return NS_ERROR_NOT_IMPLEMENTED;
  143. }
  144.  
  145. /* End of implementation class template. */
  146. #endif
  147.  
  148.  
  149. #endif /* __gen_nsIAccessibleAction_h__ */
  150.